Skip to content

Commit

Permalink
Removed commented code and updated spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts-ctrlo committed Oct 11, 2023
1 parent 2cf7b25 commit e8dcee4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 51 deletions.
15 changes: 1 addition & 14 deletions src/frontend/css/stylesheets/base/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,4 @@ table.table-bordered {
tbody>tr>td {
border: solid 1px $gray;
}
}

// #preview {
// //Copied from bootstrap
// padding: $input-padding-y $input-padding-x;
// @include border-radius($input-border-radius, 0);
// @include box-shadow($input-box-shadow);
// @include transition($input-transition);
// @include form-control-focus($ignore-warning: true);
// background-clip: padding-box;
// border: $input-border-width solid $input-border-color;
// //Required to stop box "overlapping" other controls below
// margin-bottom: 1.2em;
// }
}
20 changes: 10 additions & 10 deletions views/layout.tt
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,19 @@
[%
$popover = INCLUDE snippets/markdown.tt;
INCLUDE fields/textarea.tt
id = "helptext"
name = "helptext"
label = "Help text for the user"
placeholder = "Helptext"
value = column.helptext
filter = "html"
id = "helptext"
name = "helptext"
label = "Help text for the user"
placeholder = "Helptext"
value = column.helptext
filter = "html"
custom_classes = "js-markdown-input"
popover_body = $popover
popover_title = "Markdown Help"
rows = 5;
popover_body = $popover
popover_title = "Markdown Help"
rows = 5;
%]
[% INCLUDE snippets/markdown_section.tt
label = "Help text preview" %]
label = "Help text preview" %]
</div>
</div>
</div>
Expand Down
54 changes: 27 additions & 27 deletions views/topic.tt
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,44 @@
<div class="card__content">
[%
INCLUDE fields/input.tt
id = "name"
name = "name"
label = "Name of topic"
placeholder = "Name of topic"
value = topic.name
type = "text"
filter = "html"
is_required = 1
autofocus = 1;
id = "name"
name = "name"
label = "Name of topic"
placeholder = "Name of topic"
value = topic.name
type = "text"
filter = "html"
is_required = 1
autofocus = 1;
%]
<div class="js-markdown-section">
[%
$help = INCLUDE snippets/markdown.tt;
INCLUDE fields/textarea.tt
id = "description"
name = "description"
label = "Description"
value = topic.description
filter = "html"
help_text = "Use Markdown for formatting"
rows = 5
popover_body = $help
popover_title = "Markdown Help"
id = "description"
name = "description"
label = "Description"
value = topic.description
filter = "html"
help_text = "Use Markdown for formatting"
rows = 5
popover_body = $help
popover_title = "Markdown Help"
custom_classes = "js-markdown-input";
%]
[% INCLUDE snippets/markdown_section.tt
label = "Description Preview" %]
label = "Description Preview" %]
</div>
[%
INCLUDE fields/switch_single.tt
id = "initial_state"
name = "initial_state"
label = "Initial state of topic's fields when editing"
placeholder = "Expanded"
fieldset_name = "switch-expanded"
value = "open"
checked = topic.initial_state == "collapsed" ? 0 : 1
filter = "html";
id = "initial_state"
name = "initial_state"
label = "Initial state of topic's fields when editing"
placeholder = "Expanded"
fieldset_name = "switch-expanded"
value = "open"
checked = topic.initial_state == "collapsed" ? 0 : 1
filter = "html";
%]
</div>
</div>
Expand Down

0 comments on commit e8dcee4

Please sign in to comment.