Permalink
Browse files

adding an ID to all element containers based on the field id + the -c…

…ontainer suffix
  • Loading branch information...
1 parent f8be7ee commit 3b785ffe63f0349a96a57de23843e7f894ee0e9a @Zeelot committed Jul 19, 2010
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Button Element -->
-<div class="yform-item yform-button">
+<div class="yform-item yform-button" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<button <?php echo HTML::attributes($attributes); ?>><?php echo (empty($label))?'':$label; ?></button>
<?php foreach ($messages as $type => $array): ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Reset Element -->
-<div class="yform-item yform-reset">
+<div class="yform-item yform-reset" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<button <?php echo HTML::attributes($attributes); ?>><?php echo (empty($label))?'':$label; ?></button>
<?php foreach ($messages as $type => $array): ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Submit Element -->
-<div class="yform-item yform-submit">
+<div class="yform-item yform-submit" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<button <?php echo HTML::attributes($attributes); ?>><?php echo (empty($label))?'':$label;?></button>
<?php foreach ($messages as $type => $array): ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_CheckboxGroup Element -->
-<fieldset class="yform-item yform-checkboxGroup">
+<fieldset class="yform-item yform-checkboxGroup" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if( ! empty($label)): ?>
<legend>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_RadioGroup Element -->
-<fieldset class="yform-item yform-radioGroup">
+<fieldset class="yform-item yform-radioGroup" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if( ! empty($label)): ?>
<legend>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Select Element -->
-<div class="yform-item yform-select<?php echo empty($errors) ? '' : ' errors'; ?>">
+<div class="yform-item yform-select<?php echo empty($errors) ? '' : ' errors'; ?>" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" >
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Checkbox Element -->
-<div class="yform-item yform-checkbox">
+<div class="yform-item yform-checkbox" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<input <?php echo HTML::attributes($attributes); ?>/>
<?php if ( ! empty($label)): ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Hidden Element -->
-<div class="yform-item yform-hidden">
+<div class="yform-item yform-hidden" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<input <?php echo HTML::attributes($attributes); ?>/>
<?php foreach ($messages as $type => $array): ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Password Element -->
-<div class="yform-item yform-password<?php echo empty($errors) ? '' : ' errors'; ?>">
+<div class="yform-item yform-password<?php echo empty($errors) ? '' : ' errors'; ?>" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" >
<?php echo $label; ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Radio Element -->
-<div class="yform-item yform-radio">
+<div class="yform-item yform-radio" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<input <?php echo HTML::attributes($attributes); ?>/>
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" ><?php echo $label; ?></label>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Text Element -->
-<div class="yform-item yform-text<?php echo empty($errors) ? '' : ' errors'; ?>">
+<div class="yform-item yform-text<?php echo empty($errors) ? '' : ' errors'; ?>" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" >
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Textarea Element -->
-<div class="yform-item yform-textarea<?php echo empty($errors) ? '' : ' errors'; ?>">
+<div class="yform-item yform-textarea<?php echo empty($errors) ? '' : ' errors'; ?>" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" >
<?php echo $label; ?>
@@ -1,6 +1,6 @@
<!-- BEGIN YForm_Upload Element -->
-<div class="yform-item yform-upload<?php echo empty($errors) ? '' : ' errors'; ?>">
+<div class="yform-item yform-upload<?php echo empty($errors) ? '' : ' errors'; ?>" id="<?php echo Arr::get($attributes, 'id'); ?>-container">
<?php if ( ! empty($label)): ?>
<label for="<?php echo Arr::get($attributes, 'id'); ?>" >

0 comments on commit 3b785ff

Please sign in to comment.