Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
{{> navbar}}
<div class="col-md-6 col-md-offset-3">
{{> postForm}}
{{> posts}}
<template name="navbar">
<div class="navbar navbar-inverse">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Meteor Crud</a>
<ul class="nav navbar-right">
<li>{{loginButtons align = "right" }}</li>
<template name="postForm">
<div class="form-group">
<label class="control-label">Create post</label>
<div class="input-group">
<input type="text" id="content" class="form-control">
<span class="input-group-btn">
<button class="btn btn-success" id= "create" type="button">Create</button>
<template name="posts">
{{#each post}}
{{> post}}
<template name="post">
{{#if editing}}
<input type="text" class="form-control" value="{{content}}" />
<span class="content col-md-10" id = "edit" ><strong>{{firstName}}:</strong> {{content}}</span>
<button class="btn btn-sm btn-danger" id = 'delete' type="submit">Delete</button>