From a6f71d73c8d69e0a2dd6c9c516cf888ec122839b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 9 Aug 2014 22:15:37 +0200 Subject: [PATCH] Improved HTML structure of check- and radioboxes --- src/Views/input/input-checkboxes.phtml | 14 ++++++++------ src/Views/input/input-radioboxes.phtml | 12 ++++-------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/Views/input/input-checkboxes.phtml b/src/Views/input/input-checkboxes.phtml index d1a06fcc..9c5c4eca 100644 --- a/src/Views/input/input-checkboxes.phtml +++ b/src/Views/input/input-checkboxes.phtml @@ -1,5 +1,4 @@ context->label) ? $this->context->label . ':' : ''; $optionValuesDisabled = $this->context->optionValuesDisabled; $optionValuesEnabled = $this->context->optionValuesEnabled; @@ -8,10 +7,15 @@ $optionNames = $this->context->optionNames; $optionStates = $this->context->optionStates; $keys = array_keys($optionNames); $inputClass = isset($this->context->inputClass) ? $this->context->inputClass : ''; +$ids = array_map('uniqid', $optionNames); ?>
-