socialforge/app/views/shares/_form.html.erb

24 lines
742 B
Plaintext

<div id="share_new" style = "width: 431px; center" >
<%= form_for(@share) do |f| %>
<div>
分享到项目:
<%= f.select 'project_id', options_from_collection_for_select(@ps, "id", "name") %></div>
<div class="field">
<%= f.text_field :title, :style => 'width: 399px;display: none;' %>
</div>
<div class="field">
<%= f.text_area :description, :rows => 4, :style => 'width: 100%;resize: none;', :class => 'create-share' %>
</div>
<div class="field">
<%= f.label "Website:" %><br/>
<%= f.text_field :url, :style => 'width: 100%;', :class => 'create-share' %>
</div>
<div class="actions" style=" padding-top: 10px; float:right">
<%= f.submit :value=>"分享"%>
</div>
<% end %>
<br/>
</div>