Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Add support for hidden field #25

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

steffendsommer
Copy link
Contributor

⚠️ Depends on ml-archive/bootstrap#14

@codecov
Copy link

codecov bot commented Aug 29, 2018

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@         Coverage Diff          @@
##           master   #25   +/-   ##
====================================
  Coverage       0%    0%           
====================================
  Files          13    13           
  Lines         231   233    +2     
====================================
- Misses        231   233    +2
Impacted Files Coverage Δ
Sources/Submissions/Configs/TagTemplatePaths.swift 0% <0%> (ø) ⬆️
Sources/Submissions/SubmissionsProvider.swift 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47b832a...6286d3a. Read the comment docs.

@@ -3,7 +3,7 @@
<label for="#(key)">#(label)</label>
}

#bs:input("#get(type)", "form-control #if(hasErrors) { is-invalid }", "id='#(key)' name='#(key)' #if(value) { value='#(value)' } autofocus #if(isRequired) { required } #if(placeholder) { placeholder='#(placeholder)' }")
#bs:input("#get(type)", "form-control #if(hasErrors) { is-invalid }", "id='#(key)' name='#(key)' #if(value) { value='#(value)' } #if(isRequired) { required } #if(placeholder) { placeholder='#(placeholder)' }")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing you removed autofocus as well. Why is #get(type) necessary? Can it be #(type)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on whether and how autofocus should be configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#get() isn't needed - removed that part. We could consider having an "additional attributes" parameter that could be based on to bs:input. Created an issue on it: #26

@steffendsommer steffendsommer merged commit c208e55 into master Aug 29, 2018
@steffendsommer steffendsommer deleted the feature/add-support-for-hidden-field branch August 29, 2018 18:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants