share previews

This commit is contained in:
yanxd 2013-10-25 15:46:14 +08:00
parent d3725cc44c
commit 6dec8a9312
3 changed files with 85 additions and 82 deletions

View File

@ -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| %>
<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>
<%= 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>
<div class="field">
<div class="field">
<%= f.text_area :description, :rows => 4, :style => 'width: 100%;resize: none;', :class => 'create-share' %>
</div>
<div class="field">
</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>
<div class="actions" style=" padding-top: 10px; float:right">
<%= f.submit :value=>"分享" ,:class => 'whiteButton', :style => 'font-size: 14px; padding: 3px' %>
</div>
<% end %>
<br/>
</div>

View File

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

View File

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