Position of a document custom fields unified
This commit is contained in:
parent
d1330675dc
commit
aae721d21b
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
||||||
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
||||||
# Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
|
# Copyright (C) 2011-17 Karel Pičman <karel.picman@kontron.com>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
||||||
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
||||||
# Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
|
# Copyright (C) 2011-17 Karel Pičman <karel.picman@kontron.com>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@ -44,6 +44,13 @@
|
|||||||
<%= text_area_tag("commited_files[#{i}][description]", upload.description, :rows => 6, :class => 'wiki-edit') %>
|
<%= text_area_tag("commited_files[#{i}][description]", upload.description, :rows => 6, :class => 'wiki-edit') %>
|
||||||
</p>
|
</p>
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
|
<div class="splitcontentright">
|
||||||
|
<div class="custom_fields">
|
||||||
|
<% upload.custom_values.each do |value| %>
|
||||||
|
<p><%= custom_field_tag_with_label("commited_files[#{i}][dmsf_file_revision]", value) %></p>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag("commited_files[#{i}][version]_minor", l(:label_dmsf_version)) %>
|
<%= label_tag("commited_files[#{i}][version]_minor", l(:label_dmsf_version)) %>
|
||||||
@ -70,13 +77,10 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% upload.custom_values.each do |value| %>
|
|
||||||
<p><%= custom_field_tag_with_label("commited_files[#{i}][dmsf_file_revision]", value) %></p>
|
|
||||||
<% end %>
|
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag("commited_files[#{i}][comment]", l(:label_comment)) %>
|
<%= label_tag("commited_files[#{i}][comment]", l(:label_comment)) %>
|
||||||
<%= text_area_tag("commited_files[#{i}][comment]", upload.comment, :rows => 2) %>
|
<%= text_area_tag("commited_files[#{i}][comment]", upload.comment, :rows => 2) %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= wikitoolbar_for "commited_files_#{i}_description" %>
|
<%= wikitoolbar_for "commited_files_#{i}_description" %>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
||||||
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
||||||
# Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
|
# Copyright (C) 2011-17 Karel Pičman <karel.picman@kontron.com>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@ -49,6 +49,16 @@
|
|||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
|
<div class="splitcontentright">
|
||||||
|
<div class="custom_fields">
|
||||||
|
<% upload.custom_values.each do |value| %>
|
||||||
|
<p>
|
||||||
|
<%= label_tag('', h(value.custom_field.name)) %>
|
||||||
|
<%= h(value) %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('', l(:label_dmsf_version)) %>
|
<%= label_tag('', l(:label_dmsf_version)) %>
|
||||||
@ -72,4 +82,4 @@
|
|||||||
<div class="wiki"><%= textilizable(upload.comment) %></div>
|
<div class="wiki"><%= textilizable(upload.comment) %></div>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user