Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. renderContentOn: html
  2.  
  3.     reload ifTrue: [ self search ].
  4.    
  5.     html form
  6.         id: 'lists-main';
  7.         with: [
  8.            
  9.              html div id: 'stock-list'; with: [
  10.                
  11.                 html label
  12.                     id: 'recherche';
  13.                     class: 'mobileLabel' if: ((self session navigator) = 1);
  14.                     with: 'Contenu :'.
  15.                 html space; space.
  16.                 html select
  17.                     id: 'contenu';
  18.                     class: 'mobileSelect' if: ((self session navigator) = 1);
  19.                     list: #( 'En Stock' 'Tout');
  20.                     selected: (self content);
  21.                     callback: [ :value |  self content: value];
  22.                     beSubmitOnChange.
  23.                
  24.                 html break.
  25.                 html label
  26.                     id: 'recherche';
  27.                     class: 'mobileLabel' if: ((self session navigator) = 1);
  28.                     with: 'Recherche :'.
  29.                 html space; space.
  30.                
  31.                 self renderSelectOn: html id: 'first'.
  32.                 self renderSelectOn: html id: 'second'.
  33.                 self renderSelectOn: html id: 'third'.
  34.                
  35.                 html space; space; space.
  36.                 html submitButton
  37.                     class: 'mobileButton' if: ((self session navigator) = 1);
  38.                     value: 'Reset';
  39.                     callback: [ self reset; updateListSelect ].
  40.                
  41.                 parentElement
  42.                     ifTrue: [
  43.                         html submitButton
  44.                             class: 'mobileButton' if: ((self session navigator) = 1);
  45.                             value: 'Retour';
  46.                             callback: [ self search. parentElement := false ]
  47.                     ].
  48.             ].
  49.         ].
  50.        
  51.         html form: [
  52.                
  53.             html break.
  54.             html label
  55.                 id: 'recherche';
  56.                 class: 'mobileLabel' if: ((self session navigator) = 1);
  57.                 with: 'Recherche par désignation :'.
  58.             html space; space.
  59.             html textInput
  60.                 callback: [ :value | self descriptionSearch: value ].
  61.             html space; space.
  62.             html submitButton
  63.                 callback: [ self searchByDescription];
  64.                 with: 'Search'.
  65.                
  66.         ].
  67.        
  68.         html break; break.
  69.         self createSelectOn: html.
  70.  
  71.         html form
  72.             id: 'lists';
  73.             with: [
  74.                 html div
  75.                     id: 'details';
  76.                     with: [
  77.                        
  78.                         html div
  79.                             id: 'details-sub';
  80.                             class: 'generic';
  81.                             with: [ self renderToolBoxOn: html with: mainSelected]
  82.                        
  83.                     ]
  84.            
  85.         ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement