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

28 lines
1002 B
Plaintext

<div id="share_new" style = "width: 500px; margin:0 auto" >
<%= form_for(@share) do |f| %>
<div style="width=100%; padding-top: 20px; vertical-align:baseline; text-align: right; ">
<div>
<strong style="height:25px; line-height:25px; " id="share_label" >分享到:</strong>
<%= f.select 'project_id', options_from_collection_for_select(@ps, "id", "name") %>
</div>
</div>
<br/>
<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=>"分享" ,:class => 'whiteButton', :style => 'font-size: 14px; padding: 3px' %>
</div>
<% end %>
<br/>
</div>