From d57dc52041c5fdb5b4bec42d58a9791b84686d1f Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 17 Jun 2009 16:46:51 +0000 Subject: Closes #540: input/* views have internalid attribute. git-svn-id: https://code.elgg.org/elgg/trunk@3342 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/access.php | 2 +- views/default/input/button.php | 2 +- views/default/input/checkboxes.php | 3 ++- views/default/input/email.php | 2 +- views/default/input/file.php | 2 +- views/default/input/hidden.php | 2 +- views/default/input/longtext.php | 2 +- views/default/input/password.php | 2 +- views/default/input/plaintext.php | 2 +- views/default/input/pulldown.php | 2 +- views/default/input/radio.php | 3 ++- views/default/input/tags.php | 2 +- views/default/input/text.php | 2 +- views/default/input/url.php | 2 +- 14 files changed, 16 insertions(+), 14 deletions(-) (limited to 'views/default/input') diff --git a/views/default/input/access.php b/views/default/input/access.php index 68cfcce71..38a43ec8c 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -34,7 +34,7 @@ ?> - name="" class=""> $option) { diff --git a/views/default/input/button.php b/views/default/input/button.php index 6ee4adc0d..5f48fe6a3 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -38,4 +38,4 @@ if (isset($vars['src'])) $src = "src=\"{$vars['src']}\""; if (strpos($src,$CONFIG->wwwroot)===false) $src = ""; // blank src if trying to access an offsite image. ?> - value="" /> \ No newline at end of file + type="" class="" value="" /> \ No newline at end of file diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index 3ae9c2987..6a7713b01 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -43,9 +43,10 @@ $label = $option; } + if (isset($vars['internalid'])) $id = "id=\"{$vars['internalid']}\""; $disabled = ""; if ($vars['disabled']) $disabled = ' disabled="yes" '; - echo "
"; + echo "
"; } ?> \ No newline at end of file diff --git a/views/default/input/email.php b/views/default/input/email.php index d9516fd2b..cb38543df 100644 --- a/views/default/input/email.php +++ b/views/default/input/email.php @@ -21,4 +21,4 @@ if (!$class) $class = "input-text"; ?> - name="" value="" class=""/> \ No newline at end of file + name="" value="" class=""/> \ No newline at end of file diff --git a/views/default/input/file.php b/views/default/input/file.php index 58d7437ff..3b1a43bda 100644 --- a/views/default/input/file.php +++ b/views/default/input/file.php @@ -23,4 +23,4 @@ $class = $vars['class']; if (!$class) $class = "input-file"; ?> - name="" class="" /> \ No newline at end of file + name="" class="" /> \ No newline at end of file diff --git a/views/default/input/hidden.php b/views/default/input/hidden.php index 6fcd56e4a..d1750b6f3 100644 --- a/views/default/input/hidden.php +++ b/views/default/input/hidden.php @@ -17,4 +17,4 @@ * */ ?> - name="" value="" /> \ No newline at end of file + name="" value="" /> \ No newline at end of file diff --git a/views/default/input/longtext.php b/views/default/input/longtext.php index b199ef2aa..83c0f5a60 100644 --- a/views/default/input/longtext.php +++ b/views/default/input/longtext.php @@ -22,4 +22,4 @@ ?> - \ No newline at end of file + \ No newline at end of file diff --git a/views/default/input/password.php b/views/default/input/password.php index ecc02c365..c8b7d5e06 100644 --- a/views/default/input/password.php +++ b/views/default/input/password.php @@ -21,4 +21,4 @@ if (!$class) $class = "input-password"; ?> - name="" value="" class="" /> \ No newline at end of file + name="" value="" class="" /> \ No newline at end of file diff --git a/views/default/input/plaintext.php b/views/default/input/plaintext.php index a957940cf..105c8780d 100644 --- a/views/default/input/plaintext.php +++ b/views/default/input/plaintext.php @@ -22,4 +22,4 @@ ?> - \ No newline at end of file + \ No newline at end of file diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php index 42a72259c..fb7619048 100644 --- a/views/default/input/pulldown.php +++ b/views/default/input/pulldown.php @@ -26,7 +26,7 @@ ?> - class=""> {$label}
"; + echo "
"; } ?> \ No newline at end of file diff --git a/views/default/input/tags.php b/views/default/input/tags.php index b3c69ae76..3e8bb8023 100644 --- a/views/default/input/tags.php +++ b/views/default/input/tags.php @@ -42,4 +42,4 @@ } ?> - name="" value="" class=""/> \ No newline at end of file + name="" value="" class=""/> \ No newline at end of file diff --git a/views/default/input/text.php b/views/default/input/text.php index 94559afd6..dfe7265da 100644 --- a/views/default/input/text.php +++ b/views/default/input/text.php @@ -24,4 +24,4 @@ ?> - name="" value="" class=""/> \ No newline at end of file + name="" value="" class=""/> \ No newline at end of file diff --git a/views/default/input/url.php b/views/default/input/url.php index 1bfe04fe4..31e973eb5 100644 --- a/views/default/input/url.php +++ b/views/default/input/url.php @@ -21,4 +21,4 @@ if (!$class) $class = "input-url"; ?> - name="" value="" class=""/> \ No newline at end of file + name="" value="" class=""/> \ No newline at end of file -- cgit v1.2.3