Commit 74242472 authored by chris.crook's avatar chris.crook

> added more admin functionality

parent 30b6f87e
...@@ -27,10 +27,10 @@ public class AdminRegister extends AppCompatActivity { ...@@ -27,10 +27,10 @@ public class AdminRegister extends AppCompatActivity {
public void createuser (View view){ public void createuser (View view){
// //
String name = ((EditText) findViewById(R.id.Name_input)).getText().toString(); String name = ((EditText) findViewById(R.id.name_input2)).getText().toString();
String user = ((EditText) findViewById(R.id.Username_input)).getText().toString(); String user = ((EditText) findViewById(R.id.username_input2)).getText().toString();
String pass = ((EditText) findViewById(R.id.Password_input)).getText().toString(); String pass = ((EditText) findViewById(R.id.password_input2)).getText().toString();
String conf = ((EditText) findViewById(R.id.Password_confirm)).getText().toString(); String conf = ((EditText) findViewById(R.id.password_confirm2)).getText().toString();
if (name.equals("")){ if (name.equals("")){
Toast.makeText(getApplicationContext(), "Enter a Name", Toast.LENGTH_SHORT).show(); Toast.makeText(getApplicationContext(), "Enter a Name", Toast.LENGTH_SHORT).show();
return; return;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
android:text="Enter Name:" /> android:text="Enter Name:" />
<EditText <EditText
android:id="@+id/name_input" android:id="@+id/name_input2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
android:text="Confirm Password:" /> android:text="Confirm Password:" />
<EditText <EditText
android:id="@+id/password_confirm" android:id="@+id/password_confirm2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment