This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
lib/assets/javascripts/templates/hidden_field_template.jst.hamlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
%input{name: @field, value: @model.get(@field), type: 'hidden'} |
2 changes: 2 additions & 0 deletions
2
lib/assets/javascripts/templates/password_field_template.jst.hamlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%label{for: @field}= @label | ||
%input{name: @field, value: @model.get(@field), type: 'password'} |
2 changes: 2 additions & 0 deletions
2
lib/assets/javascripts/templates/radio_button_template.jst.hamlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%label{for: @field}= @label | ||
%input{name: @field, value: @model.get(@field), type: 'radio'} |
1 change: 1 addition & 0 deletions
1
lib/assets/javascripts/templates/submit_button_template.jst.hamlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
%input{type: 'submit', class: 'btn btn-primary', value: 'Save'} |
2 changes: 2 additions & 0 deletions
2
lib/assets/javascripts/templates/text_area_template.jst.hamlc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%label{for: @field}= @label | ||
%textarea{name: @field}= @model.get(@field) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Backtastic.Views.HiddenFieldView extends Backtastic.Views.FormFieldView | ||
tagName: 'span' | ||
|
||
template: JST["templates/hidden_field_template"] | ||
|
||
render: -> | ||
@$el.html @template(@) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Backtastic.Views.PasswordFieldView extends Backtastic.Views.FormFieldView | ||
|
||
template: JST["templates/password_field_template"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Backtastic.Views.RadioButtonView extends Backtastic.Views.FormFieldView | ||
|
||
template: JST["templates/radio_button_template"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Backtastic.Views.SubmitButtonView extends Backtastic.Views.FormFieldView | ||
|
||
template: JST["templates/submit_button_template"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Backtastic.Views.TextAreaView extends Backtastic.Views.FormFieldView | ||
|
||
template: JST["templates/text_area_template"] | ||
|