Skip to content

Commit

Permalink
[WIP]: magritte-metamodel#2 - Reduce Duplication with Magritte
Browse files Browse the repository at this point in the history
  • Loading branch information
seandenigris committed Jul 15, 2018
1 parent ce9dca1 commit 7cf42a6
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
as yet unclassified
editorAvailableStyle
^ 'span3'

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ rendering
renderEditorOn: html
html div
class: 'checkbox';
with: [
html label: [
html checkbox
id: self labelId;
disabled: self isReadonly;
on: #value of: self.
html space; render: self magritteDescription checkboxLabel ] ]
with: [ super renderEditorOn: html ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ rendering
renderInputOn: html
| textInput |
textInput := html textInput.
description placeholder notNil ifTrue: [
textInput placeholder: description placeholder ].

description cssClasses isEmpty ifFalse: [
textInput class: (String streamContents: [:stream |
description cssClasses
do: [:cls | stream nextPutAll: cls]
separatedBy: [stream nextPut: Character space]])].

description placeholder ifNotNil: [ :ph | textInput placeholder: ph ].
description cssClasses do: [ :cls | textInput class: cls ].
textInput
id: self labelId;
disabled;
on: #string of: self.
on: #string of: self

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
private
htmlErrorClass
^ 'has-error'

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private
reportClass

^ TBSMagritteReport

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rendering
renderSeparatorOn: html

0 comments on commit 7cf42a6

Please sign in to comment.