Skip to content

Commit cdc4b2f

Browse files
committed
Added a custom partial for the path field to make it more clear what the field is for #380
1 parent 8596b71 commit cdc4b2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
%div{class: 'markdown-output', style: 'width: fit-content; border: 1px solid #ccc; border-radius: 4px; padding: 6px 12px', disabled: true}=form.object.body
1+
%div{class: 'markdown-output', style: 'width: fit-content; border: 1px solid #ccc; border-radius: 4px; padding: 6px 12px', readonly: true}=form.object.body
22
%p{class: 'markdown-disclaimer'}Disclaimer: Preview may appear differently on final page. Use two returns for line breaks.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.input-group
2+
.input-group-addon
3+
%span{class: 'input-group-text'}=request.host + (request.local? ? ':3000' : '') + '/game/pages/'
4+
%input.form-control{id: "page_path", name: 'page[path]', type: "text", value: form.object.path}
5+

config/initializers/rails_admin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
partial "markdown_output"
605605
end
606606
field :path do
607-
label 'mitrestemctf.org/game/pages/'
607+
partial "page_url"
608608
end
609609
field :game
610610
end

0 commit comments

Comments
 (0)