ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10939 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Mar 3, 2009, 5:10:04 PM (14 years ago)
Author:
ShogoKawahara
Message:

#3604:fixed CommunityForm? doesn't hold the parameter in form when invalid

Location:
OpenPNE3/trunk/apps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/i18n/messages.ja.xml

    r10900 r10939  
    108108      </trans-unit>
    109109      <trans-unit id="">
     110        <source>Create community</source>
     111        <target>コミュニティの作成</target>
     112      </trans-unit>
     113      <trans-unit id="">
    110114        <source>Join community</source>
    111115        <target>コミュニティに参加する</target>
  • OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/editSuccess.php

    r10304 r10939  
    1 <?php op_mobile_page_title($community->getName(), __('Edit community')) ?>
     1<?php
     2$subtitle = null;
     3$url = 'community/edit';
     4if($communityForm->isNew())
     5{
     6  $title = __('Create community');
     7}
     8else
     9{
     10  $title = __('Edit community');
     11  $subtitle = $community->getName();
     12  $url .= '?id='.$community->getId();
     13}
     14?>
    215
    3 <?php if ($form->isNew()) : ?>
    4 <form action="<?php echo url_for('community/edit') ?>" method="post">
    5 <?php else : ?>
    6 <form action="<?php echo url_for('community/edit?id=' . $community->getId()) ?>" method="post">
    7 <?php endif; ?>
     16<?php op_mobile_page_title($title, $subtitle) ?>
     17
     18<form action="<?php echo url_for($url) ?>" method="post">
    819<table>
    9 <?php echo $form ?>
     20<?php echo $communityForm ?>
     21<?php echo $communityConfigForm ?>
    1022<tr>
    1123<td colspan="2"><input type="submit" value="<?php echo __('Save') ?>" /></td>
  • OpenPNE3/trunk/apps/pc_frontend/modules/community/templates/editSuccess.php

    r10578 r10939  
    44);
    55
    6 if ($form->isNew())
     6if ($communityForm->isNew())
    77{
    88  $options['title'] = __('Create a new community');
     
    1515}
    1616
    17 op_include_form('formCommunity', $form, $options);
     17op_include_form('formCommunity', array($communityForm, $communityConfigForm, $communityFileForm), $options);
    1818?>
Note: See TracChangeset for help on using the changeset viewer.