-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
185 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,21 @@ | |
<div class="row-fluid"> | ||
<div class="span7"> | ||
<h2>Create a group</h2> | ||
|
||
<?php if ($this->session->flashdata('message')) { ?> | ||
<div class="alert alert-success"> | ||
<a class="close" data-dismiss="alert">×</a> | ||
<?=$this->session->flashdata('message');?> | ||
<?php echo $this->session->flashdata('message');?> | ||
</div> | ||
<?php } ?> | ||
|
||
<div class="row-fluid"> | ||
<p>Groups can be used to share links with groups of people; family, friends, coworkers. Create a group, invite some people, share some links.</p> | ||
<form id="create_group" method="post" action="/groups/add"> | ||
<div class="span3"> | ||
<p><input type="text" size="60" class="input-large" id="name" name="name" placeholder="Name your group" /></p> | ||
<p><textarea id="description" name="description" class="input-large" cols="100" rows="8" placeholder="What is the purpose of your group? (optional)"></textarea><br /><small><strong>Examples:</strong><br />Sharing links for our upcoming vacation.<br />Links my coworkers need.</small></p> | ||
<?=form_submit('btn_add_group','Create this group','class="btn-primary"');?> | ||
<?php echo form_submit('btn_add_group','Create this group','class="btn-primary"');?> | ||
</div> | ||
<div class="span3"> | ||
<p><input type="text" size="60" class="input-large" id="invite1" name="invite1" value="" placeholder="[email protected]" /></p> | ||
|
@@ -27,17 +27,17 @@ | |
<p><input type="text" size="60" class="input-large" id="invite5" name="invite5" value="" /></p> | ||
<p><small>Everyone invited to this group will receive an email asking them to join Nilai (if they don't have an account already) so that they can be part of the group.</small></p> | ||
</div> | ||
<input type="hidden" id="uid" name="uid" value="<?=$uid;?>" /> | ||
<input type="hidden" id="uid" name="uid" value="<?php echo $uid;?>" /> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="well span3"> | ||
|
||
<a href="/home">Back to your marks</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<?php $this->load->view('footer'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,53 +2,53 @@ | |
|
||
<div class="row-fluid"> | ||
<div class="span7"> | ||
<h2>Groups : Members : <?=$group['name'];?></h2> | ||
<h2>Groups : Members : <?php echo $group['name'];?></h2> | ||
|
||
<?php if ($this->session->flashdata('message')) { ?> | ||
<div class="alert alert-success"> | ||
<a class="close" data-dismiss="alert">×</a> | ||
<?=$this->session->flashdata('message');?> | ||
<?php echo $this->session->flashdata('message');?> | ||
</div> | ||
<?php } ?> | ||
|
||
<div class="row-fluid"> | ||
<div class="span8"> | ||
<p>Add or remove members of this group.</p> | ||
<form id="edit_group" method="post" action="/groups/<?=$group['groupuid'];?>/invite_member"> | ||
<p><input type="text" size="60" class="input-large" id="emailaddress" name="emailaddress" placeholder="[email protected]" /> <?=form_submit('btn_invite_member','Invite','class="btn-primary"');?></p> | ||
<input type="hidden" id="groupuid" name="groupuid" value="<?=$group['groupuid'];?>" /> | ||
<input type="hidden" id="groupid" name="groupid" value="<?=$group['groupid'];?>" /> | ||
|
||
<form id="edit_group" method="post" action="/groups/<?php echo $group['groupuid'];?>/invite_member"> | ||
<p><input type="text" size="60" class="input-large" id="emailaddress" name="emailaddress" placeholder="[email protected]" /> <?php echo form_submit('btn_invite_member','Invite','class="btn-primary"');?></p> | ||
<input type="hidden" id="groupuid" name="groupuid" value="<?php echo $group['groupuid'];?>" /> | ||
<input type="hidden" id="groupid" name="groupid" value="<?php echo $group['groupid'];?>" /> | ||
</form> | ||
|
||
<?php if (isset($group['invites'])) { ?> | ||
<h3>Invites</h3> | ||
<div class="members"> | ||
<?php foreach($group['invites'] as $member) { ?> | ||
<div class="member"> | ||
<p><?php if ($member['emailaddress'] == $this->session->userdata('emailaddress')) { ?><?php echo $member['emailaddress']. ' - This is you!'; } else { ?><!-- <a href="#" class="btn" title="Remove the invite"><i class="icon-ban-circle"></i></a> --> <strong><?=$member['emailaddress'];?></strong> <small>was invited on <?=date("d F Y",strtotime($member['dateinvited']));?></small><?php } ?></p> | ||
<p><?php if ($member['emailaddress'] == $this->session->userdata('emailaddress')) { ?><?php echo $member['emailaddress']. ' - This is you!'; } else { ?><!-- <a href="#" class="btn" title="Remove the invite"><i class="icon-ban-circle"></i></a> --> <strong><?php echo $member['emailaddress'];?></strong> <small>was invited on <?php echo date("d F Y",strtotime($member['dateinvited']));?></small><?php } ?></p> | ||
</div> | ||
<?php } ?> | ||
</div> | ||
<?php } ?> | ||
|
||
<h3>Members</h3> | ||
<div class="members"> | ||
<?php foreach($group['members'] as $member) { ?> | ||
<div class="member"> | ||
<p><?php if ($member['emailaddress'] == $this->session->userdata('emailaddress')) { ?><?php echo $member['emailaddress']. ' - This is you!'; } else { ?> <a href="<?=site_url();?>groups/<?=$group['groupuid'];?>/remove/<?=$member['id'];?>" class="btn" title="Remove this member"><i class="icon-ban-circle"></i></a> <strong><?=$member['emailaddress'];?></strong> <small>member since <?=date("d F Y",strtotime($member['datejoined']));?></small><?php } ?></p> | ||
<p><?php if ($member['emailaddress'] == $this->session->userdata('emailaddress')) { ?><?php echo $member['emailaddress']. ' - This is you!'; } else { ?> <a href="<?php echo site_url();?>groups/<?php echo $group['groupuid'];?>/remove/<?php echo $member['id'];?>" class="btn" title="Remove this member"><i class="icon-ban-circle"></i></a> <strong><?php echo $member['emailaddress'];?></strong> <small>member since <?php echo date("d F Y",strtotime($member['datejoined']));?></small><?php } ?></p> | ||
</div> | ||
<?php } ?> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="well span3"> | ||
<a href="/groups/<?=strtoupper($group['groupuid']);?>">Back to your group</a> | ||
|
||
<a href="/groups/<?php echo strtoupper($group['groupuid']);?>">Back to your group</a> | ||
</div> | ||
|
||
</div> | ||
|
||
<?php $this->load->view('footer'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.