share previews

exceptionHandle
yanxd 12 years ago
parent d3725cc44c
commit 6dec8a9312

@ -1,23 +1,27 @@
<div id="share_new" style = "width: 431px; center" > <div id="share_new" style = "width: 500px; margin:0 auto" >
<%= form_for(@share) do |f| %> <%= form_for(@share) do |f| %>
<div> <div style="width=100%; padding-top: 20px; vertical-align:baseline; text-align: right; ">
分享到项目: <div>
<%= f.select 'project_id', options_from_collection_for_select(@ps, "id", "name") %></div> <strong style="height:25px; line-height:25px; " id="share_label" >分享到:</strong>
<div class="field"> <%= f.select 'project_id', options_from_collection_for_select(@ps, "id", "name") %>
<%= f.text_field :title, :style => 'width: 399px;display: none;' %> </div>
</div> </div>
<br/>
<div class="field">
<%= f.text_field :title, :style => 'width: 399px;display: none;' %>
</div>
<div class="field"> <div class="field">
<%= f.text_area :description, :rows => 4, :style => 'width: 100%;resize: none;', :class => 'create-share' %> <%= f.text_area :description, :rows => 4, :style => 'width: 100%;resize: none;', :class => 'create-share' %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label "Website:" %><br/> <%= f.label "Website:" %><br/>
<%= f.text_field :url, :style => 'width: 100%;', :class => 'create-share' %> <%= f.text_field :url, :style => 'width: 100%;', :class => 'create-share' %>
</div> </div>
<div class="actions" style=" padding-top: 10px; float:right"> <div class="actions" style=" padding-top: 10px; float:right">
<%= f.submit :value=>"分享"%> <%= f.submit :value=>"分享" ,:class => 'whiteButton', :style => 'font-size: 14px; padding: 3px' %>
</div> </div>
<% end %> <% end %>
<br/> <br/>
</div> </div>

@ -1,5 +1,5 @@
<h1>分享</h1> <!-- h1>分享</h1 -->
<%= render 'form' %> <%= render 'form' %>
<%= link_to 'Back', shares_path %> <!-- %= link_to '返回', shares_path % -->

@ -49,7 +49,6 @@
top:1px; top:1px;
} }
#share_project_id { #share_label {
float: right; line-height: 1.4em
width: 100%;
} }
Loading…
Cancel
Save