Example #1
0
 /**
  * The image fieldset initializer
  */
 public function init()
 {
     parent::__construct("image");
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'name', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_IMAGE_NAME"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_IMAGE_NAME"]))));
     $this->add(array('name' => 'image', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_IMAGE_IMAGE"]))));
 }
Example #2
0
 public function init()
 {
     parent::__construct('setting');
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'aboutProfileImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_ABOUT_PROFILE_IMAGE"]))));
     $this->add(array('name' => 'homeImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_HOME_IMAGE"]))));
     $this->add(array('name' => 'aboutImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_ABOUT_IMAGE"]))));
     $this->add(array('name' => 'galleriesImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_GALLERIES_IMAGE"]))));
     $this->add(array('name' => 'servicesImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SERVICES_IMAGE"]))));
     $this->add(array('name' => 'contactImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_CONTACT_IMAGE"]))));
     $this->add(array('name' => 'aboutImage', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_ABOUT_IMAGE"]))));
     //        $this->add(array(
     //            'name' => 'aboutFileOne',
     //            'type' => 'file',
     //            'options' => array(
     //                'label' => $this->getTranslator()->translate($vocabulary["LABEL_ABOUT_FILE_ONE"])
     //            ),
     //            'attributes' => array(
     //                'placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SELECT_IMAGE"])
     //            ),
     //        ));
     //
     //        $this->add(array(
     //            'name' => 'aboutFileTwo',
     //            'type' => 'file',
     //            'options' => array(
     //                'label' => $this->getTranslator()->translate($vocabulary["LABEL_ABOUT_FILE_TWO"])
     //            ),
     //            'attributes' => array(
     //                'placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SELECT_IMAGE"])
     //            ),
     //        ));
 }
Example #3
0
 /**
  * The login fieldset constructor
  */
 public function init()
 {
     parent::__construct('admin');
     $this->add(array('name' => 'username', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($this->getVocabulary()["LABEL_USERNAME"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($this->getVocabulary()["PLACEHOLDER_USERNAME"]))));
     $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('label' => $this->getTranslator()->translate($this->getVocabulary()["LABEL_PASSWORD"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($this->getVocabulary()["PLACEHOLDER_PASSWORD"]))));
     $this->add(array('type' => 'Zend\\Form\\Element\\Checkbox', 'name' => 'remember', 'attributes' => array('value' => "1"), 'options' => array('label' => $this->getTranslator()->translate($this->getVocabulary()["LABEL_REMEMBER_ME"]))));
 }
Example #4
0
 /**
  * The post fieldset initializer
  */
 public function init()
 {
     parent::__construct("post");
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'thumbnail', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_POST_THUMBNAIL"]))));
     $this->add(array('name' => 'title', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_POST_TITLE"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_POST_TITLE"]))));
     $this->add(array('name' => 'content', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_POST_CONTENT"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_POST_CONTENT"]))));
 }
Example #5
0
 /**
  * Add user fieldset constructor
  */
 public function init()
 {
     parent::__construct('user');
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'username', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_USER_USERNAME"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_USERNAME"]))));
     $this->add(array('name' => 'password', 'type' => 'password', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_USER_PASSWORD"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_PASSWORD"]))));
     $this->add(array('name' => 'email', 'type' => 'email', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_EMAIL"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_EMAIL"]))));
 }
Example #6
0
 public function init()
 {
     parent::__construct('contact');
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'subject', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SUBJECT"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SUBJECT"]))));
     $this->add(array('name' => 'body', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_BODY"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_BODY"]))));
     $this->add(array('name' => 'sender', 'type' => 'email', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SENDER"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SENDER"]))));
 }
Example #7
0
 /**
  * The post fieldset initializer
  */
 public function init()
 {
     parent::__construct("gallery");
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'name', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_GALLERY_NAME"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_GALLERY_NAME"]))));
     $this->add(array('type' => 'text', 'name' => 'images', 'options' => array('object_manager' => $this->getEntityManager(), 'target_class' => 'Image\\Entity\\Image', 'label' => $this->getTranslator()->translate($vocabulary["LABEL_GALLERY_IMAGES"])), 'attributes' => array('class' => 'imageSelect')));
     $this->add(array('type' => 'DoctrineModule\\Form\\Element\\ObjectSelect', 'name' => 'parentGallery', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_GALLERY_PARENT_GALLERY"]), 'object_manager' => $this->getEntityManager(), 'empty_option' => $this->getTranslator()->translate($vocabulary["EMPTY_OPTION"]), 'target_class' => 'Image\\Entity\\Gallery', 'property' => 'name', 'disable_inarray_validator' => true)));
 }
Example #8
0
 /**
  * The post fieldset initializer
  */
 public function init()
 {
     parent::__construct("service");
     $vocabulary = $this->getVocabulary();
     $this->add(array('name' => 'thumbnail', 'type' => 'file', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SERVICE_THUMBNAIL"]))));
     $this->add(array('name' => 'name', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SERVICE_NAME"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SERVICE_NAME"]))));
     $this->add(array('name' => 'content', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SERVICE_CONTENT"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SERVICE_CONTENT"]))));
     $this->add(array('name' => 'snippet', 'type' => 'text', 'options' => array('label' => $this->getTranslator()->translate($vocabulary["LABEL_SERVICE_SNIPPET"])), 'attributes' => array('placeholder' => $this->getTranslator()->translate($vocabulary["PLACEHOLDER_SERVICE_SNIPPET"]))));
 }