Skip to content

Commit 44fe4e1

Browse files
committed
refactors view
1 parent dceb2a7 commit 44fe4e1

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

app/views/documents/edit.html.erb

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11
<% content_for :title do %>
22
<title>Editing <%= @document.service.name %> <%= @document.document_type ? @document.document_type.name : @document.name %></title>
33
<% end %>
4-
<%= render 'form', document: @document, document_names: @document_names, crawlers: @crawlers, services: @services %>
4+
5+
<div>
6+
<div>
7+
<ul class="nav navbar-nav navbar-right">
8+
<li class="lighter small"><%= link_to 'Back', document_path(@document) %></li>
9+
</ul>
10+
</div>
11+
<br>
12+
<br>
13+
<div class="container">
14+
<div class="panel panel-default">
15+
<div class="panel-heading">
16+
<small>Documents describe a service's various <mark>legal policies</mark> and <mark>business practices</mark>.</small>
17+
</div>
18+
<div class="panel-body">
19+
<span class="lighter">
20+
<h4>
21+
Update <%= @document.service.name %> - <%= @document.document_type ? @document.document_type.name : @document.name %>
22+
<small>
23+
To generate the document, crawlers fetch the text from the given web location
24+
</small>
25+
</h4>
26+
</span>
27+
</div>
28+
</div>
29+
<div class="panel panel-default">
30+
<div class="panel-heading">
31+
<small>We use <%= link_to 'document types', document_types_path %> to enforce the <mark>standardization</mark> of document names to prevent the addition of non-sensical texts and spam. We are working on new features to ease this transition.</small>
32+
</div>
33+
<div class="panel-body">
34+
<br>
35+
<%= render 'form', document: @document, document_names: @document_names, crawlers: @crawlers, services: @services %>
36+
<br>
37+
</div>
38+
</div>
39+
</div>
40+
</div>

0 commit comments

Comments
 (0)