Skip to content

Commit 30cec75

Browse files
committed
Show editable after approval instead of locked
1 parent 1b5c274 commit 30cec75

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

app/views/projects/_project_edit.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<span class="ml-1 text-red-600">*</span>
2323
<% end %>
2424

25-
<% if is_readonly %>
25+
<% if !is_readonly %>
2626
<span class="ml-2 text-[10px] font-semibold text-blue-600 bg-blue-50 px-2 py-0.5 rounded-full border border-blue-100 uppercase tracking-tighter">
27-
Locked after Approval
27+
Editable after Approval
2828
</span>
2929
<% end %>
3030
<% end %>

app/views/projects/_project_new.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
<% if field.required %>
1111
<span class="ml-1 text-red-600">*</span>
1212
<% end %>
13+
<% if field.free_edit %>
14+
<span class="ml-2 text-[10px] font-semibold text-blue-600 bg-blue-50 px-2 py-0.5 rounded-full border border-blue-100 uppercase tracking-tighter">
15+
Editable after Approval
16+
</span>
17+
<% end %>
1318
<% end %>
1419

1520
<% case field.field_type %>

app/views/projects/edit.html.erb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@
7575
<div class="flex flex-col group">
7676
<label class="block text-xs sm:text-sm font-bold text-gray-700 uppercase tracking-wide mb-2">
7777
Based on Topic
78-
<% if is_topic_readonly %>
79-
<span class="ml-2 text-[10px] font-bold text-blue-600 bg-blue-50 px-2 py-0.5 rounded-full border border-blue-100 uppercase tracking-tighter">
80-
Locked after Approval
81-
</span>
82-
<% end %>
8378
</label>
8479

8580
<% unless is_topic_readonly %>

app/views/projects/new.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
</p>
5757
</div>
5858

59-
60-
6159
<div
6260
class="
6361
bg-white rounded-xl sm:rounded-2xl shadow-sm border border-gray-100

0 commit comments

Comments
 (0)