Changeset 1685
- Timestamp:
- 03/05/10 11:00:47 (5 months ago)
- Location:
- trunk/plugins/ullCorePlugin
- Files:
-
- 4 modified
-
i18n/common.de.xml (modified) (1 diff)
-
lib/form/ullUserFilterForm.php (modified) (1 diff)
-
modules/ullAdmin/templates/indexSuccess.php (modified) (2 diffs)
-
modules/ullUser/lib/BaseUllUserActions.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ullCorePlugin/i18n/common.de.xml
r1632 r1685 941 941 </trans-unit> 942 942 943 <trans-unit id="20002"> 944 <source>User selection</source> 945 <target>Benutzerauswahl</target> 946 </trans-unit> 947 943 948 944 949 <trans-unit id="20007"> -
trunk/plugins/ullCorePlugin/lib/form/ullUserFilterForm.php
r1335 r1685 8 8 9 9 $this->getWidget('search')->setAttribute('title', __('Searches for name, username, email, location and department', null, 'ullCoreMessages')); 10 11 $c = new ullColumnConfiguration; 12 $c 13 ->setOption('entity_classes', array('UllUser')) 14 ->setOption('show_search_box', true) 15 ->setWidgetOption('add_empty', true) 16 ->setWidgetAttribute('onchange', 'submit()') 17 ->setValidatorOption('required', false) 18 ; 19 $widget = new ullMetaWidgetUllEntity($c, $this); 20 $widget->addToFormAs('id'); 21 22 $this->widgetSchema->setLabels(array( 23 'id' => __('User selection', null, 'common'), 24 )); 10 25 } 11 26 } -
trunk/plugins/ullCorePlugin/modules/ullAdmin/templates/indexSuccess.php
r1531 r1685 81 81 82 82 <div id="tc_search"> 83 < div class="tc_box color_medium_bg">84 < ?php echo form_tag('ullUser/list'); ?>83 <?php echo form_tag('ullUser/list'); ?> 84 <div class="tc_box color_medium_bg"> 85 85 <table> 86 86 <tr> … … 100 100 </tr> 101 101 </table> 102 </form> 103 </div> 104 <div class="tc_box_with_bottom_spacer color_light_bg"> 105 <?php echo ull_link_to(__('Advanced search', null, 'common'), 'ullUser/search') ?> 106 </div> 102 103 </div> 104 <div class="tc_box_with_bottom_spacer color_light_bg"> 105 <?php echo ull_link_to(__('Advanced search', null, 'common'), 'ullUser/search') ?> 106 </div> 107 108 <div class="tc_box_with_bottom_spacer color_medium_bg"> 109 <?php echo $form['id']->renderLabel() ?><br /> 110 <?php echo $form['id']->render() ?><?php echo submit_image_tag(ull_image_path('search'), array('class' => 'tc_search_quick_top_img')) ?> 111 </div> 112 107 113 <!-- 108 114 <div class="tc_search_tag_top color_medium_bg"><h3>Tags</h3></div> 109 115 <div class="tc_search_tag_bottom color_light_bg"><br /><br /><br /><br />tba<br /></div> 110 116 --> 117 </form> 111 118 </div> 112 119 -
trunk/plugins/ullCorePlugin/modules/ullUser/lib/BaseUllUserActions.class.php
r1676 r1685 72 72 //the columns with a dash if the matching boolean is false 73 73 $this->q->getDoctrineQuery()->addSelect('x.*,'); 74 75 //filter per entity 76 if ($id = $this->filter_form->getValue('id')) 77 { 78 $this->q->addWhere('x.id = ?', $id); 79 $this->user = Doctrine::getTable('UllUser')->findOneById($id); 80 81 $this->ull_filter->add('filter[id]', __('Owner', null, 'common') . ': ' . $this->user); 82 } 83 else 84 { 85 $this->user = null; 86 } 74 87 } 75 88
