Skip to content

Commit

Permalink
MDL-19793 Upgraded calls to link_to_popup_window()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 20, 2009
1 parent 8cc826b commit 58b36ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions calendar/event_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</td>
<td>
<input type="text" name="name" size="67" value="<?php p($form->name); ?>" />
<?php if (isset($err['name'])) formerr($err['name']); ?>
<?php if (isset($err['name'])) echo $OUTPUT->error_text($err['name']); ?>
</td>
</tr>
<tr>
Expand All @@ -31,7 +31,7 @@
<td>
<?php
print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description);
if (isset($err['description'])) formerr($err['description']);
if (isset($err['description'])) echo $OUTPUT->error_text($err['description']);
?>
</td>
</tr>
Expand All @@ -41,7 +41,7 @@
<?php echo $OUTPUT->select($startselectors[0]) . $OUTPUT->select($startselectors[1]) . $OUTPUT->select($startselectors[2]);?>
<?php print_string('eventtime', 'calendar');?>
<?php echo $OUTPUT->select($startselectors[3]) . $OUTPUT->select($startselectors[4]);?>
<?php if (isset($err['timestart'])) formerr($err['timestart']); ?>
<?php if (isset($err['timestart'])) echo $OUTPUT->error_text($err['timestart']); ?>
</td>
</tr>
<tr>
Expand All @@ -63,13 +63,13 @@
<?php echo $OUTPUT->select($endselectors[0]) . $OUTPUT->select($endselectors[1]) . $OUTPUT->select($endselectors[2]);?>
<?php print_string('eventtime', 'calendar');?>
<?php echo $OUTPUT->select($endselectors[3]) . $OUTPUT->select($endselectors[4]);?>
<?php if (isset($err['timeduration'])) formerr($err['timeduration']); ?>
<?php if (isset($err['timeduration'])) echo $OUTPUT->error_text($err['timeduration']); ?>
</div>
<div>
<input type="radio" name="duration" value="2" id="duration_minutes" <?php if($form->duration == 2) echo 'checked="checked"'; ?>/>
<label for="duration_minutes"><?php print_string('durationminutes', 'calendar'); ?>:</label>
<input type="text" name="minutes" size="3" value="<?php p($form->minutes); ?>" />
<?php if (isset($err['minutes'])) formerr($err['minutes']); ?>
<?php if (isset($err['minutes'])) echo $OUTPUT->error_text($err['minutes']); ?>
</div>
</td>
</tr>
Expand Down
12 changes: 6 additions & 6 deletions calendar/event_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</label></td>
<td>
<input type="text" name="name" size="67" id="eventname" value="<?php p($form->name); ?>" />
<?php if (isset($err['name'])) formerr($err['name']); ?>
<?php if (isset($err['name'])) echo $OUTPUT->error_text($err['name']); ?>
</td>
</tr>
<tr>
Expand All @@ -33,7 +33,7 @@
<td>
<?php
print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description);
if (isset($err['description'])) formerr($err['description']);
if (isset($err['description'])) echo $OUTPUT->error_text($err['description']);
?>
</td>
</tr>
Expand All @@ -45,7 +45,7 @@
<?php echo $OUTPUT->select($startselectors[0]) . $OUTPUT->select($startselectors[1]) . $OUTPUT->select($startselectors[2]);?>
<?php print_string('eventtime', 'calendar');?>
<?php echo $OUTPUT->select($startselectors[3]) . $OUTPUT->select($startselectors[4]);?>
<?php if (isset($err['timestart'])) formerr($err['timestart']); ?>
<?php if (isset($err['timestart'])) echo $OUTPUT->error_text($err['timestart']); ?>
</td>
</tr>
<tr>
Expand All @@ -63,13 +63,13 @@
<?php echo $OUTPUT->select($endselectors[0]) . $OUTPUT->select($endselectors[1]) . $OUTPUT->select($endselectors[2]);?>
<?php print_string('eventtime', 'calendar');?>
<?php echo $OUTPUT->select($endselectors[3]) . $OUTPUT->select($endselectors[4]);?>
<?php if (isset($err['timeduration'])) formerr($err['timeduration']); ?>
<?php if (isset($err['timeduration'])) echo $OUTPUT->error_text($err['timeduration']); ?>
</div>
<div>
<input type="radio" name="duration" value="2" id="duration_minutes" <?php if($form->duration == 2) echo 'checked="checked"'; ?>/>
<label for="duration_minutes"><?php print_string('durationminutes', 'calendar'); ?></label>
<input type="text" name="minutes" size="3" value="<?php p($form->minutes); ?>" id="minutes"/>
<?php if (isset($err['minutes'])) formerr($err['minutes']); ?>
<?php if (isset($err['minutes'])) echo $OUTPUT->error_text($err['minutes']); ?>
<label class="accesshide" for="minutes"><?php print_string('minutes') ?></label>
</div>
</td>
Expand All @@ -93,7 +93,7 @@
</label>
<input id="repeats" type="text" name="repeats" size="2" value="<?php p($form->repeats); ?>" />
<label for="repeats"><?php print_string('repeatweeksr', 'calendar'); ?></label>
<?php if (isset($err['repeats'])) formerr($err['repeats']); ?>
<?php if (isset($err['repeats'])) echo $OUTPUT->error_text($err['repeats']); ?>
</div>
</td>
</tr>
Expand Down

0 comments on commit 58b36ec

Please sign in to comment.