Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6544bb11
authored
Nov 19, 2023
by
Tatang S
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pt formulir spop
1 parent
6bacab04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
opensipkd/base/views/widgets/formulir.pt
opensipkd/base/views/widgets/formulir.pt
0 → 100644
View file @
6544bb1
<!-- <div>
<p class="form-control-static" id="${oid|field.oid}">${year}.${bundle}.${seq}</p>
</div> -->
<div i18n:domain="deform"
tal:omit-tag=""
tal:define="oid oid|field.oid;
name name|field.name;
css_class css_class|field.widget.css_class;
mask_placeholder '_';
style style|field.widget.style;">
${field.start_mapping()}
<div class="row">
<div class="col-xs-4">
<div class="input-group">
<span class="input-group-addon">
<input type="text" name="year" value="${year}"
class="span2 form-control ${css_class or ''}"
tal:attributes="style style;
year_attributes|field.widget.year_attributes|{};"
maxlength="4" minlength="4" placeholder="Tahun"
id="tahun-formulir"/>
</span>
<span class="input-group-addon">
<input type="text" name="bundle" value="${bundle}"
class="span2 form-control ${css_class or ''}"
tal:attributes="style style;
bundle_attributes|field.widget.bundle_attributes|{};"
maxlength="4" minlength="4" placeholder="Bundle"
id="bundle-formulir"/>
</span>
<span class="input-group-addon">
<input type="text" name="seq" value="${seq}"
class="span2 form-control ${css_class or ''}"
tal:attributes="style style;
seq_attributes|field.widget.seq_attributes|{};"
maxlength="3" minlength="3" placeholder="Urut"
id="urut-formulir"/>
</span>
</div>
</div>
</div>
<script type="text/javascript">
deform.addCallback(
'year',
function (oid) {
$("#tahun-formulir").mask("9999",
{placeholder:"${mask_placeholder}"});
});
deform.addCallback(
'bundle',
function (oid) {
$("#bundle-formulir").mask("9999",
{placeholder:"${mask_placeholder}"});
});
deform.addCallback(
'seq',
function (oid) {
$("#urut-formulir").mask("999",
{placeholder:"${mask_placeholder}"});
});
</script>
${field.end_mapping()}
</div>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment