active/app/views/admin/active_signups/edit.html.erb

127 lines
4.1 KiB
Plaintext

<%= form_for @act_signup, url: admin_active_signup_path(@act_signup), html: {class: "form-horizontal main-forms"} do |f| %>
<fieldset>
<% content_for :page_specific_css do %>
<%= stylesheet_link_tag "lib/main-forms" %>
<%= stylesheet_link_tag "lib/fileupload" %>
<%= stylesheet_link_tag "lib/main-list" %>
<% end %>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "lib/bootstrap-fileupload" %>
<%= javascript_include_tag "lib/bootstrap-datetimepicker" %>
<%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %>
<%= javascript_include_tag "lib/file-type" %>
<%= javascript_include_tag "lib/module-area" %>
<% end %>
<!-- Input Area -->
<div class="input-area">
<!-- Language -->
<div class="tab-content">
<!-- Title -->
<div class="control-group">
<label class="control-label muted"><%= t('act.title') %></label>
<div class="controls">
<%= @act.title %>
</div>
</div>
<!-- Name -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.name') %></label>
<div class="controls">
<%= f.text_field :name, :class => "input-block-level", placeholder: t('act_signup.name') %>
</div>
</div>
<% if @act.has_idno %>
<!-- IDNO -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.idno') %></label>
<div class="controls">
<%= f.text_field :idno, :class => "input-block-level", :placeholder=> t('act_signup.idno'), :required => true %>
</div>
</div>
<% end %>
<!-- Birthday -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.birthday') %></label>
<div class="controls">
<%= f.datetime_picker :birthday, :no_label => true, :format=>"yyyy/MM/dd" %>
</div>
</div>
<!-- Sex -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.sex') %></label>
<div class="controls">
<label class="radio inline">
<%= f.radio_button :sex, "male" %><%= t('users.male')%>
</label>
<label class="radio inline">
<%= f.radio_button :sex, "female" %><%= t('users.female')%>
</label>
</div>
</div>
<!-- Tel -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.tel') %></label>
<div class="controls">
<%= f.text_field :tel, :class=>"input-block-level", :placeholder=> t('act_signup.tel'), :required => true %>
</div>
</div>
<!-- Phone -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.phone') %></label>
<div class="controls">
<%= f.text_field :phone, :class=>"input-block-level", :placeholder=> t('act_signup.phone') %>
</div>
</div>
<!-- Fax -->
<div class="control-group">
<label class="control-label muted"><%= t('act_signup.fax') %></label>
<div class="controls">
<%= f.text_field :phone, :class=>"input-block-level", :placeholder=> t('act_signup.fax') %>
</div>
</div>
<!-- Email -->
<div class="control-group">
<label class="control-label muted"><%= t(:email) %></label>
<div class="controls">
<%= f.email_field :email, :class=>"input-block-level", :placeholder=> t(:email), :required => true %>
</div>
</div>
<!-- Note -->
<div class="control-group">
<label class="control-label muted"><%= t('act.note') %></label>
<div class="controls">
<%= f.text_area :note, rows: 5, :class=>"input-block-level", :placeholder=> t('act.note') %>
</div>
</div>
</div>
</div>
<!-- Form Actions -->
<div class="form-actions">
<%#= get_referer_url[:action] rescue "" %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>
<%= link_to t('cancel'), "/admin/actives/#{@act.id}/act_signup", :class=>"btn" %>
</div>
</fieldset>
<% end %>