Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNatoli committed Oct 27, 2016
2 parents c5a388a + e055189 commit 7ce1bdd
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 8 deletions.
18 changes: 17 additions & 1 deletion _ide_helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.2.45 on 2016-10-19.
* Generated for Laravel 5.2.45 on 2016-10-21.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
Expand Down Expand Up @@ -14072,6 +14072,22 @@ public static function getInstance(){
}


class Recaptcha extends \GreggilGreggilbert\Recaptcha\RecaptchaServiceProviderbert\Recaptcha\Facades\Recaptcha{

/**
* Render the recaptcha
*
* @param array $options
* @return \Greggilbert\Recaptcha\view
* @static
*/
public static function render($options = array()){
return \Greggilbert\Recaptcha\Recaptcha::render($options);
}

}


class Html extends \Collective\Html\HtmlFacade{

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Forms/Admin/UsersForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function buildForm()
'choices' => $roles,
'multiple' => false,
'label' => 'Access Level',
'selected' => $this->model->roles[0]->id
'selected' => ($this->model) ? $this->model->roles[0]->id : null
])

->add('nomination_limit', 'text', [
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UserController extends Controller
public function index ()
{
// Don't select all fields to keep password hash and tokens private
$Users = \App\User::query()->select(["id", "name_first", "name_last", "rank", "phone", "affiliation_id", "email", "created_at", "updated_at"])->paginate(5);
return $Users;
$Users = \App\User::query()->select(["id", "name_first", "name_last", "rank", "phone", "affiliation_id", "email", "created_at", "updated_at"])->paginate(5);
return $Users;
}
}
18 changes: 17 additions & 1 deletion database/seeds/UsersTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,30 @@ public function run()
"affiliation_id" => 1,
"email" => "[email protected]",
'password' => 'admin',
'nomination_limit' => 5,
'nomination_limit' => 1000000,
'active' => 'Y',
]
);

$role = \App\Role::find(1);
$newUser->attachRole($role);

// Add test nominator account
$newUser2 = App\User::create(
[
'name_first' => "Nominator",
'name_last' => "Account",
"affiliation_id" => 2,
"email" => "[email protected]",
'password' => 'nomnom',
'nomination_limit' => 5,
'active' => 'Y',
]
);

$role2 = \App\Role::find(2);
$newUser2->attachRole($role2);


}
}
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ You will eventually want to shut down vagrant (so you're not running a virtual m

## Additional Configuration

### Developer Login Credentials

**Username:** `[email protected]`

**Password:** `admin`

### Testing emails with Mailtrap.io
1. Register an account with https://mailtrap.io - You can link your github account
2. In your local `.env` file append the credentials and settings Mailtrap lists in your demo inbox.
Expand Down Expand Up @@ -148,4 +154,4 @@ If the "S3_*" variables are filled in the ".env" file, Amazon S3 will be used in
}
]
}
```
```
2 changes: 1 addition & 1 deletion resources/assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var DataTable = function (table, details) {
var result = {
orderClasses: false,
fixedHeader: true,
responsive: true,
responsive: false,
dom: "tip",
stateSave: true,
stateSaveCallback: function (settings, data) {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/forms/household.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@

<div v-for="record in household.child" class="box box-success">
<div class="box-header with-border">
<h1 class="box-title">Child @{{$index+1}} <span v-if="(record.name_first || record.name_last) && (record.name_first.length > 0 || record.name_last.length > 0)">-</span> @{{record.name_first}} @{{record.name_last}}</h1>
<h1 class="box-title">Child @{{$index+1}} <span v-if="record.name_first.length > 0 || record.name_last.length > 0">-</span> @{{record.name_first}} @{{record.name_last}}</h1>
</div>


Expand Down

0 comments on commit 7ce1bdd

Please sign in to comment.