Sha256: cafc7d645584f978d9bbb2e899057af64f17a60a9eacdf7361a6e8bf41a3d7a4

Contents?: true

Size: 840 Bytes

Versions: 5

Compression:

Stored size: 840 Bytes

Contents

<%= form_for [:admin, @site] do |f| %>
  <%= render "/shared/error_messages", target: @site  %>

  <div class="form-group">
    <%= f.label :name %>
    <%= f.text_field :name, class: "form-control" %>
  </div>

  <div class="form-group">
    <%= f.label :url %>
    <%= f.url_field :url, class: "form-control" %>
  </div>

  <div class="form-group">
    <%= f.label :url %>
    <%= f.select :site_node_id, SiteNode.name_options, { include_blank: false }, { class: "form-control" } %>
  </div>

  <div class="form-group">
    <%= f.label :desc %>
    <%= f.text_area :desc, class: "form-control", rows: 3 %>
  </div>

  <div class="form-actions">
    <%= f.submit '保存', class: "btn btn-primary", 'data-disable-with' => '保存中...' %>
    <%= link_to '取消', admin_sites_path, class: "btn btn-outline-primary" %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
homeland-site-0.3.3 app/views/homeland/site/admin/sites/_form.html.erb
homeland-site-0.3.2 app/views/homeland/site/admin/sites/_form.html.erb
homeland-site-0.3.1 app/views/homeland/site/admin/sites/_form.html.erb
homeland-site-0.3.0 app/views/homeland/site/admin/sites/_form.html.erb
homeland-site-0.2.1 app/views/homeland/site/admin/sites/_form.html.erb