2013-01-08 08:58:01 +00:00
|
|
|
<% content_for :side_bar do %>
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= render :partial => 'admin/users_new_interface/side_bar' %>
|
2013-01-08 08:58:01 +00:00
|
|
|
<% end %>
|
|
|
|
|
2012-11-03 21:56:29 +00:00
|
|
|
<% content_for :page_specific_css do -%>
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= stylesheet_link_tag "lib/wrap-nav.css" %>
|
|
|
|
<%= stylesheet_link_tag "lib/pageslide.css" %>
|
|
|
|
<%= stylesheet_link_tag "lib/main-forms.css" %>
|
|
|
|
<%= stylesheet_link_tag "lib/togglebox.css" %>
|
|
|
|
<% end -%>
|
2011-12-23 10:34:21 +00:00
|
|
|
|
2012-11-03 21:56:29 +00:00
|
|
|
<% content_for :page_specific_javascript do -%>
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= javascript_include_tag "lib/jquery.tmpl.min.js" %>
|
|
|
|
<%= javascript_include_tag "lib/member/role-forms.js" %>
|
|
|
|
<% end -%>
|
2012-11-03 21:56:29 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
<%= form_for @attribute,:url => eval("admin_#{@attribute_type}_path(@attribute)") , :html => { :class=> "form-horizontal main-forms", :id=>'info' } do |f| %>
|
|
|
|
<h3><%= t(eval(":#{@attribute_type}"))%></h3>
|
|
|
|
<fieldset>
|
|
|
|
<div id="basic-area" class="input-area">
|
|
|
|
<div class="basic">
|
|
|
|
<div class="attributes-header clearfix">
|
|
|
|
<h4>Basic</h4>
|
|
|
|
</div>
|
|
|
|
<div class="attributes-body">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted" for="key_0">Key</label>
|
|
|
|
<div class="controls">
|
|
|
|
|
|
|
|
<% if @attribute.new_record? %>
|
|
|
|
<%= f.text_field :key, :placeholder => t(:key) %>
|
|
|
|
<% else %>
|
|
|
|
<div><%= @attribute.key %></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"#{@attribute_type}[title_translations]"}%>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted" for=""><%= t(:to_search) %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :to_search, true %>
|
|
|
|
<%= t(:yes_)%>
|
|
|
|
</label>
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :to_search, false %>
|
|
|
|
<%= t(:no_)%>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<h3><%= @attribute.title %></h3>
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
<div id="attributes-area" class="input-area">
|
|
|
|
|
|
|
|
<%= render :partial=>"shared/attribute_field/attribute_field",:collection=>@attribute.attribute_fields%>
|
2013-01-14 10:19:14 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
</div>
|
2013-01-14 10:19:14 +00:00
|
|
|
|
2013-08-09 07:07:05 +00:00
|
|
|
<div class="form-actions">
|
|
|
|
<button type="button" class="btn btn-success add-attributes"><%= t(:add_attribute_field) %></button>
|
|
|
|
<%= hidden_field_tag 'id', params[:role_id] if !params[:role_id].blank? %>
|
|
|
|
<%= f.submit t(:submit),:class=>"btn btn-primary"%>
|
|
|
|
<%= link_to t('cancel'), get_go_back, :class=>"btn" %>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% content_for :page_specific_javascript do -%>
|
|
|
|
<%= render 'js/support_member_form_js' %>
|
2012-11-03 21:56:29 +00:00
|
|
|
<% end -%>
|
2013-08-09 07:07:05 +00:00
|
|
|
|