personal-conference/app/views/admin/writing_conferences/setting.html.erb

150 lines
5.5 KiB
Plaintext
Raw Permalink Normal View History

2014-07-01 10:19:07 +00:00
<style type="text/css">
.element{
background: #FFF;
margin-bottom: 10px;
border-radius: 5px;
border: 1px solid #DDD;
}
.detail{
padding: 10px;
min-height: 250px;
}
.totle{
margin-bottom: 25px;
}
.totle span{
font-size: 18px;
}
#conference_setting input[type="checkbox"]{
margin-top: 0;
margin-right: 0.3em;
}
2014-07-01 10:19:07 +00:00
</style>
<div class="row">
<div class="element span4">
<div class="detail w-a h-a">
<p class="totle">
<a class="btn btn-small btn-primary pull-right" href="<%= new_admin_conference_paper_type_path %>#paper_type_modal" data-toggle="modal" data-remote="true"><i class="icon-plus"></i> <%= t('add')%></a>
<span><%= t("personal_conference.paper_type") %></span>
</p>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table id="paper_types" class="table table-striped">
<tbody>
<%= render :partial => 'list_paper_type', :collection => @paper_types %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="element span4">
<div class="detail w-a h-a">
<p class="totle">
<a class="btn btn-small btn-primary pull-right" href="<%= new_admin_conference_paper_level_path %>#paper_level_modal" data-toggle="modal" data-remote="true"><i class="icon-plus"></i> <%= t('add')%></a>
<span><%= t("personal_conference.paper_level") %></span>
</p>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table id="paper_levels" class="table table-striped">
<tbody>
<%= render :partial => 'list_paper_level', :collection => @paper_levels %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="element span4">
<div class="detail w-a h-a">
<p class="totle">
<a class="btn btn-small btn-primary pull-right" href="<%= new_admin_conference_author_type_path %>#author_type_modal" data-toggle="modal" data-remote="true"><i class="icon-plus"></i> <%= t('add')%></a>
<span><%= t("personal_conference.author_type") %></span>
</p>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table id="author_types" class="table table-striped">
<tbody>
<%= render :partial => 'list_author_type', :collection => @author_types %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="element span4">
<div class="detail w-a h-a">
<p class="totle">
<a class="btn btn-small btn-primary pull-right" href="<%= new_admin_conference_author_type_path %>#author_type_modal" data-toggle="modal" data-remote="true"><i class="icon-plus"></i> <%= t('add')%></a>
<span><%= t("personal_conference.page_settings") %></span>
</p>
<div class="detal-list my_scroll">
<% @setting = WritingConferenceSetting.first%>
<% @setting = WritingConferenceSetting.create if @setting.nil? %>
<%= form_for @setting, url: admin_writing_conference_update_setting_path, html: {id: 'conference_setting'} do |f| %>
<div class="control-group">
<div class="control-label"><%= t("personal_conference.display_fields_in_member_page") %>:</div>
<div class="controls">
<% WritingConferenceSetting::Fields_names.each do |f| %>
<label><input type="checkbox" name="writing_conference_setting[display_fields_in_member_page][]" value="<%=f%>" <%=@setting.display_fields_in_member_page.include?(f) ? "checked=\"checked\"" : "" %> /><%=t("personal_conference.#{f}")%></label>
<% end %>
</div>
</div>
<div class="control-group">
<label class="control-label" for="publication_date_format"><%= t("personal_conference.publication_date_format") %>:</label>
<div class="controls">
<input type="text" name="writing_conference_setting[publication_date_format]" value="<%=@setting.publication_date_format%>" placeholder="%Y-%m-%d" />
</div>
</div>
<div><%= f.submit "Save", :class=>"btn btn-primary btn-small" %></div>
<% end %>
</div>
</div>
</div>
2014-07-01 10:19:07 +00:00
</div>
<div id="paper_type_qe">
<div style="display:none;" class="modal" id="paper_type_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
</div>
<div id="paper_level_qe">
<div style="display:none;" class="modal" id="paper_level_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
</div>
<div id="author_type_qe">
<div style="display:none;" class="modal" id="author_type_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
</div>