better register contents view

This commit is contained in:
Torsten Ruger
2015-08-08 17:52:24 +03:00
parent b91fabdd90
commit abb22f524b
4 changed files with 20 additions and 14 deletions

View File

@ -7,13 +7,16 @@
<div class="register-view">
<div>
{{ reg.name }}
</div>
<div>
{{ reg.value }}
</div>
{{ reg.fields.each do |attribute| }}
<div class="col-md-12">
{{marker(attribute)}} {{attribute.object_id}}
{{ reg.fields.each_with_index do |attribute, index| }}
<div>
<div class="field">
{{index}}{{marker(attribute)}}
</div>
<div class="value">
{{attribute.object_id}}
</div>
</div>
{{end}}
</div>