Project

General

Profile

« Previous | Next » 

Revision 2:816615c2529f

Added by Haru Iida about 10 years ago

  • ID 816615c2529f

Add effect.

View differences:

app/views/commit_relation_editor/_body_bottom.html.erb
23 23
    <% if authorize_for('commit_relation_editor', 'new') %>
24 24
      <div style="display: none;">
25 25
        <div id="comit_relation_add">
26
          <% form_tag :controller => 'commit_relation_editor', :action => 'new', :id => @project do%>            
27
            <%= hidden_field_tag 'changeset_id', @changeset.id %>
28
            <span class="icon icon-add"><%=h l(:add_related_issue_to_commit) -%>:</span> <%= text_field_tag 'issue_id', '', :size => 7 %>
29
            <%= submit_tag  'OK', :id => 'add_relation_submit', :onclick => "return issueIdValidation($('issue_id').value);" %>
30
          <% end %>
26
          <span class="icon icon-add">
27
          <%= link_to_function(h(l(:add_related_issue_to_commit)), "new Effect.SlideDown('comit_relation_add_form')") %>
28
          </span>
29
          <div id="comit_relation_add_form" style="display: none;">
30
            <% form_tag :controller => 'commit_relation_editor', :action => 'new', :id => @project do%>            
31
              <%= hidden_field_tag 'changeset_id', @changeset.id %>
32
              <%=h l(:field_issue) -%>: <%= text_field_tag 'issue_id', '', :size => 7 %>
33
              <%= submit_tag  h(l(:button_apply)), :id => 'add_relation_submit', :onclick => "return issueIdValidation($('issue_id').value);" %>
34
            <% end %>
35
          </div>
31 36
        </div>
32 37
      </div>
33 38
      <script type="text/javascript">

Also available in: Unified diff