Merge branch 'master' into 3408-production-datamanager
[arvados.git] / apps / workbench / app / views / application / _name_and_description.html.erb
1 <% if @object.respond_to? :name %>
2   <h2>
3     <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New #{controller.model_class.to_s.underscore.gsub("_"," ")}" } %>
4   </h2>
5 <% end %>
6
7 <% if @object.respond_to? :description %>
8   <div class="arv-description-as-subtitle">
9     <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %>
10   </div>
11 <% end %>