Ejemplo n.º 1
0
 public function createSummary()
 {
     $s = new DefaultCustomFormSummary();
     $s->present('ewcType', 'Type of the way', 'choice', $this->ewcTypes());
     $s->present('routeFrom', 'Beginning of the route', 'string');
     $s->present('routeTo', 'End of the route', 'string');
     $s->present('routeLength', 'Route length', 'callback', function ($length) {
         return $length . ' km';
     });
     $s->present('routeAscent', 'Route ascent', 'callback', function ($length) {
         return $length . ' m';
     });
     $s->present('whyCreatingArea', 'WhyCreatingAreaFormLabel', 'string');
     $s->present('intersectionPoint', 'IntersectionPointFormLabel', 'string');
     $s->present('leaderGoals', 'LeaderGoalsFormLabel', 'string');
     $s->present('particiaptionDetails', 'ParticipationDetailsFormLabel', 'string');
     $s->present('projectMgmtExperiences', 'ProjectMgmtExperienceFormLabel', 'string');
     $s->present('threeBiggestSuccesses', 'ThreeBiggestSuccessesFormLabel', 'string');
     $s->present('stationaryCourse', 'StationaryCoursePreferenceLabel', 'callback', function ($options) {
         if (!is_array($options)) {
             return '---';
         }
         $code = '<ul>';
         $mapping = $this->stationaryCourseTypes();
         foreach ($options as $option) {
             $code .= '<li>' . $this->translator->trans($mapping[$option]) . '</li>';
         }
         $code .= '</ul>';
         return $code;
     });
     return $s;
 }
Ejemplo n.º 2
0
 public function createSummary()
 {
     $s = new DefaultCustomFormSummary();
     $s->present('ewcDate', 'Date of Extreme Way of the Cross', 'date');
     $s->present('parishName', 'Parish name', 'string');
     $s->present('parishAddress', 'Parish address', 'string');
     $s->present('parishPostal', 'Postal code', 'string');
     $s->present('parishCity', 'Parish city', 'string');
     $s->present('parishWebsite', 'Parish website', 'callback-raw', function ($url) {
         return '<a href="' . htmlspecialchars($url) . '">' . htmlspecialchars($url) . '</a>';
     });
     $s->present('responsiblePriest', 'Priest', 'string');
     $s->present('responsibleCoordinator', 'Area coordinator', 'string');
     $s->present('contactPhone', 'Contact telephone', 'string');
     $s->present('areaWebsite', 'Area website', 'callback-raw', function ($url) {
         return '<a href="' . htmlspecialchars($url) . '">' . htmlspecialchars($url) . '</a>';
     });
     $s->present('facebookProfile', 'Facebook profile', 'string');
     return $s;
 }
Ejemplo n.º 3
0
 public function createSummary()
 {
     $s = new DefaultCustomFormSummary();
     $s->present('description', 'Description', 'string');
     return $s;
 }