Skip to content

Commit

Permalink
Ajoute une date par défaut pour le mandat
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Jan 21, 2025
1 parent 792f26c commit 43d4e67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/createApplication.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,18 @@ <h5 class="title--addline">

@helper.input(applicationForm("mandatDate"),
"class" -> " single--padding-top-8px") { (id, name, value, args) =>
@defining(if(value.isEmpty) { java.time.ZonedDateTime.now().format(_root_.helper.Time.dateWithHourFormatter) } else { value }) { nonEmptyValue =>
<input class="mdl-textfield__input"
type="text"
name="@name"
id="@id"
value="@value"
value="@nonEmptyValue"
@toHtmlArgs(args)>

<span class="mdl-color-text--grey-600 single--font-size-14px">
ex. : @{java.time.ZonedDateTime.now().format(_root_.helper.Time.dateWithHourFormatter)}
</span>
}
}

</div>
Expand Down

0 comments on commit 43d4e67

Please sign in to comment.