Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created July 19, 2024 18:34
Show Gist options
  • Save jjn1056/e7f7f29441d8be7a658b62c198cbe85b to your computer and use it in GitHub Desktop.
Save jjn1056/e7f7f29441d8be7a658b62c198cbe85b to your computer and use it in GitHub Desktop.
my $m = Modulon->page
->body
->form($self->person)
->input_text('first_name')
->input_text('last_name')
->radio_buttons('employment_id')
->buttons(cached=>1)
->append_button('retired')
->select('sex')
->options('sex_options', cached=>1);
<m:form />
<m:form>
<div class='form-group'>
<m:input_group type='text' m:name='first_name'>
</div>
<div class='form-group'>
<m:label m:name='first_name'>
<m:input type='text'>
<m:errors_for>
<m:one>
<m:error_message/>
</m:one>
<m:many>
<ul>
<m:message_loop>
<li><m:error_message/></li>
</m:message_loop>
</ul>
<m:many>
</m:errors_for>
</m:label>
<m:input type='text' m:name='first_name'>
</div>
</m:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment