2016-03-09 07:05:14 +00:00
|
|
|
<% content_for :page_specific_css do %>
|
|
|
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
|
|
|
<%= stylesheet_link_tag "lib/main-list" %>
|
|
|
|
<% end %>
|
|
|
|
|
2016-04-05 18:10:42 +00:00
|
|
|
<%= form_for(:certificate_intro, :url => update_frontend_setting_admin_certificates_path, :method => "post", html: {class: "form-horizontal main-forms previewable"} ) do |f| %>
|
2016-03-09 07:05:14 +00:00
|
|
|
<fieldset>
|
|
|
|
<!-- Input Area -->
|
|
|
|
<div class="input-area">
|
|
|
|
|
|
|
|
<!-- Module Tabs -->
|
|
|
|
<div class="nav-name"><strong><%= t("module_name.personal_project") %></strong></div>
|
|
|
|
<ul class="nav nav-pills module-nav">
|
|
|
|
<li></li>
|
|
|
|
<li class="active">
|
|
|
|
<a href="#basic" data-toggle="tab"><%= t(:basic) %></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Module -->
|
|
|
|
<div class="tab-content module-area">
|
|
|
|
<!-- Basic Module -->
|
|
|
|
<div class="tab-pane fade in active" id="basic">
|
|
|
|
<% if !@member.blank? %>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted"><%= t("personal_plugins.author") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<%= @member.name rescue ''%>
|
|
|
|
<%= f.hidden_field :member_profile_id, :value => @member.id %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<!-- frontend_page -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label muted"><%= t("personal_plugins.frontend_page") %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.check_box :brief_intro, :checked => @intro.brief_intro %> <%= t("personal_plugins.brief_intro") %>
|
|
|
|
<%= f.check_box :complete_list, :checked => @intro.complete_list %> <%= t("personal_plugins.complete_list") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Language Tabs -->
|
|
|
|
<div class="nav-name"><strong><%= t(:language) %></strong></div>
|
|
|
|
<ul class="nav nav-pills language-nav">
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
<li class="<%= 'active' if i == 0 %>">
|
|
|
|
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale) %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Language -->
|
|
|
|
<div class="tab-content language-area">
|
|
|
|
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
|
|
|
|
<div class="<%= locale %> tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
|
|
|
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="control-group input-content">
|
|
|
|
<label class="control-label muted"><%= t(:content) %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="textarea">
|
|
|
|
<%= f.fields_for :text_translations do |f| %>
|
|
|
|
<%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@intro.text_translations[locale] rescue nil) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Form Actions -->
|
|
|
|
<div class="form-actions">
|
|
|
|
<%= f.hidden_field :user_id, :value => params[:user_id] if !params[:user_id].blank? %>
|
|
|
|
<%= hidden_field_tag :member_profile_id, @member.id.to_s %>
|
|
|
|
<%= f.submit t('submit'), class: 'btn btn-primary' %>
|
|
|
|
<%= link_to t('cancel'), request.referer, :class=>"btn" %>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|